import requests
import threading
import redis
import time
# url = "http://47.96.175.63:8084"
# url='http://python.yulonghuyu.com:8084'
url='http://127.0.0.1:9526'


def getlist_all():
    full_url = url+'/roles/getlist_all'
    data = {}
    html = requests.post(full_url, data)
    print(html.text)

        ## 压力测试
def yali_check():
    for idx in range(100):
        thread = threading.Thread(target=getlist_all)
        print("线程启动")
        thread.start()


if __name__ == "__main__":
    # getLastOneByOrderForm()
    yali_check()

    print("11")